#ifndef GAME_COMMANDS_HPP_
#define GAME_COMMANDS_HPP_

#include "../lan/command.hpp"

namespace ps
{
namespace lan
{

////////////////////////////////////////////////////////////////////////////////
class VersionCommand
{
public:
	enum {ID = 1};

	unsigned version;
};

lge2d::lan::Packet& operator <<(lge2d::lan::Packet& packet, const VersionCommand& command);
lge2d::lan::Packet& operator >>(lge2d::lan::Packet& packet, VersionCommand& command);

////////////////////////////////////////////////////////////////////////////////
class ErrorCommand
{
public:
	enum {ID = 2};

	int error_code;
};

lge2d::lan::Packet& operator <<(lge2d::lan::Packet& packet, const ErrorCommand& command);
lge2d::lan::Packet& operator >>(lge2d::lan::Packet& packet, ErrorCommand& command);

////////////////////////////////////////////////////////////////////////////////
} /* namespace lan */
} /* namespace ps */

#endif /* GAME_COMMANDS_HPP_ */
